package alp.starcode.nudtportal.framework.constant;

public enum ModuleTypeEnum {
    WECHAT("weChat", "[0,1,3]"),
    ALIPAY("alipay", "[0,2,3]");

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    String type;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    String key;

    ModuleTypeEnum(String key, String type) {
        this.key = key;
        this.type = type;
    }

    public static String getTypeByKey(String key) {
        ModuleTypeEnum[] loginTypeEnums = values();
        ModuleTypeEnum[] var6 = loginTypeEnums;
        int var5 = loginTypeEnums.length;
        for (int var4 = 0; var4 < var5; ++var4) {
            ModuleTypeEnum loginTypeEnum = var6[var4];
            if (key.equals(loginTypeEnum.key)) {
                return loginTypeEnum.type;
            }
        }
        return null;
    }
}
